import http from '@/utils/http/axios'
import { type } from './interface'

/**
 * @description: 根据code获取app菜单
 */
export function sysConfigPage(params) {
    return http.request<any>({
        url: `/app-admin/config/page`,
        method: 'GET',
        params
    })
}

/**
 * @description: 添加系统参数配置
 */
 export function sysConfigAdd(params) {
    return http.request<type.configAdd>({
      url: '/app-admin/config/add',
      method: 'post',
      params
    })
  }
  
  /**
   * @description:编辑系统参数配置
   */
  export function sysConfigEdit(params) {
    return http.request<type.configEdit>({
      url: '/app-admin/config/edit',
      method: 'post',
      params
    })
  }
  
  /**
   * @description:删除系统参数配置
   */
  export function sysConfigDelete(params) {
    return http.request<type.configDelete>({
      url: '/app-admin/config/delete',
      method: 'post',
      params
    })
  }

    /**
   * @description:获取参数字典
   */
     export function sysDictTypeDropDown(params) {
      return http.request<type.configDelete>({
        url: '/app-admin/dict/dropDown',
        method: 'get',
        data: params
      })
    }